Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.liveconnect.onedrive.core.OneDriveComponent

Documentation

Management of OneDrive configuration.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.liveconnect.onedrive.core.OneDriveComponent" version="1.0.0">

  <require>org.nuxeo.ecm.core.blob.BlobManager</require>
  <require>org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderRegistry</require>

  <documentation>
    Management of OneDrive configuration.
  </documentation>

  <extension target="org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderRegistry" point="providers">
    <provider>
      <name>onedrive</name>
      <description>OneDrive</description>
      <class>org.nuxeo.ecm.liveconnect.onedrive.OneDriveOAuth2ServiceProvider</class>
      <tokenServerURL>https://login.live.com/oauth20_token.srf</tokenServerURL>
      <authorizationServerURL>https://login.live.com/oauth20_authorize.srf?response_type=code</authorizationServerURL>
      <!-- for OneDrive for Business -->
      <!-- sharepoint_domain looks like : https:\/\/{tenant}-my.sharepoint.com\/ -->
      <!--<tokenServerURL>https://login.microsoftonline.com/common/oauth2/token?resource={{ sharepoint_domain }}</tokenServerURL>-->
      <!--<authorizationServerURL>https://login.microsoftonline.com/common/oauth2/authorize?response_type=code</authorizationServerURL>-->
      <scope>wl.signin</scope>
      <scope>wl.offline_access</scope>
      <scope>onedrive.readwrite</scope>
      <scope>wl.emails</scope>
    </provider>
  </extension>

  <extension target="org.nuxeo.ecm.core.blob.BlobManager" point="configuration">
    <blobprovider name="onedrive">
      <class>org.nuxeo.ecm.liveconnect.onedrive.OneDriveBlobProvider</class>
    </blobprovider>
  </extension>

</component>